<template>
  <div>
    <van-uploader>
      <van-image round :src="require('@/assets/default_photo.png')" slot="right"/>
    </van-uploader>
  </div>
</template>

<script>

export default {
  data () {
    return {
      value1: '',
      value2: '',
      value3: '',
      pattern: /\d{6}/
    }
  },
  methods: {
    // 校验函数返回 true 表示校验通过，false 表示不通过
    onFailed (errorInfo) {
      console.log('failed', errorInfo)
    }
  }
}
</script>

<style lang="less" scoped>

</style>
